package jtk.project4.fleet.field;

import java.util.Date;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Resize;
import nl.coderight.jazz.form.control.CalendarControl;
import nl.coderight.jazz.form.field.LabelField;
import nl.coderight.jazz.form.field.NumberField;
import nl.coderight.jazz.form.control.GroupControl;
import jtk.project4.fleet.domain.Equipment;

public class CurrentInformationField extends GroupControl<Equipment> {
	private LabelField dateField;
	private LabelField currentField;
	private Date date = new Date();
	private String currentDate = date.toString();
	
	public CurrentInformationField(String bindID){
		setTitle("Current Information");
		setBindID(bindID);
		createFields();
		createLayout();
	}
	
	private void createFields() {
		// TODO Auto-generated method stub		
		dateField = new LabelField("Date"+currentDate);
		currentField = new LabelField("Current : 300");
	}
	
	private void createLayout() {
		// TODO Auto-generated method stub
		setLayout(new FormLayout())
		.addField(dateField)					.addField(currentField)
		;
	}
}


